<script type="text/javascript">
	<#escape x as x?j_string>
		var contextPath = "${rc.contextPath}";
		
		var properties = {
			pagination : {
				offset : 10
			}
		};
		
		var labels = {};
		
		labels.entity = {};
		labels.entity.edit = "<@spring.message "entity.edit" />";
		labels.entity.remove = "<@spring.message "entity.remove" />";
		labels.entity.removeConfirm = "<@spring.message "entity.remove.confirm" />";
		labels.entity.add = "<@spring.message "entity.add" />";
		
		labels.fields = new Object();
		labels.fields["storeId"] = "<@spring.message "store.field.id" />";
		labels.fields["storeFancyName"] = "<@spring.message "store.field.fancyName" />";
		labels.fields["userUserName"] = "<@spring.message "user.field.userName" />";
		labels.fields["userPassword"] = "<@spring.message "user.field.password" />";
		
		labels.errors = new Object();
		labels.errors["2"] = "<@spring.message "entity.remove.entityReference" />";
		labels.errors["4"] = "<@spring.message "entity.save.fieldNull" />";
		labels.errors["5"] = "<@spring.message "entity.save.fieldEmpty" />";
		labels.errors["6"] = "<@spring.message "entity.save.fieldMaximum" />";
		labels.errors["7"] = "<@spring.message "entity.remove.notAllowed" />";
		labels.errors["8"] = "<@spring.message "entity.save.fieldDuplicated" />";
		
		var menuItems = [
			{
				"label" : "<@spring.message "menuItem.maintenance" />",
				"children" : [
					<#assign separator = "" />
					<#if true>
						${separator}
						{
							"label" : "<@spring.message "menuItem.store" />",
							"href" : "${rc.contextPath}/content/store"
						}
						<#assign separator = "," />
					</#if>
					<#if true>
						${separator}
						{
							"label" : "<@spring.message "menuItem.user" />",
							"href" : "${rc.contextPath}/content/user"
						}
						<#assign separator = "," />
					</#if>
				]
			},
			{
				"label" : "<@spring.message "menuItem.record" />",
				"children" : [
					<#assign separator = "" />
					<#if true>
						${separator}
						{
							"label" : "<@spring.message "menuItem.client" />",
							"href" : "${rc.contextPath}/content/client"
						}
						<#assign separator = "," />
					</#if>
					<#if true>
						${separator}
						{
							"label" : "<@spring.message "menuItem.product" />",
							"href" : "${rc.contextPath}/content/product"
						}
						<#assign separator = "," />
					</#if>
				]
			},
			{
				"label" : "<@spring.message "menuItem.movement" />",
				"children" : [
					<#assign separator = "" />
					<#if true>
						${separator}
						{
							"label" : "<@spring.message "menuItem.input" />",
							"href" : "${rc.contextPath}/content/input"
						}
						<#assign separator = "," />
					</#if>
					<#if true>
						${separator}
						{
							"label" : "<@spring.message "menuItem.output" />",
							"href" : "${rc.contextPath}/content/output"
						}
						<#assign separator = "," />
					</#if>
				]
			}
		];
	</#escape>
</script>
